<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <title>Title</title>
</head>
<body>
<div>

    <span th:onclick="order()" >点击下单</span>


</div>
</body>
<script>
    function order() {
        console.log("下单成功xxddd")
        let id = new Date().getTime()
        window.location.href="http://127.0.0.1:8001/order/"+id

    }
</script>
</html>